import ajax from '../../utils/request'
Page({
    data: {
        list: {},
        onClickLeft() {
            wx.showToast({
                title: '点击返回',
                icon: 'none'
            });
        },

    },
    onLoad: function (options) {
        this.getList(options.id)
    },
    async getList(id) {
        let res = await ajax('http://43.136.85.99:3008/video/detail?id=' + id)
        this.setData({
            list: res
        })
    },
})